package com.biz.primus.ms.cart.feign;

import com.biz.primus.model.cart.vo.ShopCartProductReqVo;
import com.biz.primus.model.cart.vo.ShopCartProductRespVo;
import com.biz.primus.ms.cart.degraded.DegradedProductFeignClient;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * ProductFeignClient
 *
 * @author jia JKLiues
 * @date 2017年09月19日
 * @reviewer
 * @see
 */
@FeignClient(qualifier = "productFeignClient", name = "service-commodity", fallback = DegradedProductFeignClient.class)
public interface ProductFeignClient {

    /**
     * 获取购物车商品详情
     * shoppingCartProducts
     *
     * @param requestVo 请求VO
     * @return List<ShopCartProductRespVo> 商品详情
     */
    @PostMapping("soa/commodityService/shoppingCartProducts")
    List<ShopCartProductRespVo> shoppingCartProducts(@RequestBody ShopCartProductReqVo requestVo);
}